FROM openjdk:17-jdk-alpine
VOLUME  /tmp
COPY /arthas-bin.zip /opts/arthas.bin.zip
ADD xiaofu-live-user-provider-docker.jar app.jar
EXPOSE 8080
ENV  JAVA_OPTS="\
-server \
-Xmx1g \
-Xms1g"
ENTRYPOINT java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.util.concurrent=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.math=ALL-UNNAMED -jar app.jar